package com.qf.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsProductMapper;
import com.qf.pojo.DtsGoodsProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * SKU
 * @author fy
 * @version V1.0
 * @Project workspace
 * @Package com.qf.service
 * @Description:
 * @Date 2022/6/21 2:29
 */
@Service
public class GoodsProductServiceImpl implements GoodsProductService {
    @Autowired
    private DtsGoodsProductMapper goodsProductMapper;
    @Override
    public int countGoodsProduct() {
        QueryWrapper<DtsGoodsProduct> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("deleted", false);
        Integer count = goodsProductMapper.selectCount(queryWrapper);
        return count;
    }
}
